<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>订单小票</title>
  <script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
  <script src="https://code.jquery.com/jquery-migrate-3.3.2.js"></script>
  <script src="__CDN__/print/jquery.jqprint-0.3.js"></script>
  <script>
    function aa(){
      let order_id = $("#order_id").val();
      $.ajax({
        url: "update_order_status?order_id="+order_id,
        type: "GET",
        dataType: "json",
        data: {
        },
        success: function (data) {
        }
      })
      let newstr = document.getElementById("ddd").innerHTML;
      let oldstr = document.body.innerHTML;
      document.body.innerHTML = newstr;
      window.print();
      document.body.innerHTML = oldstr;

    }
  </script>
</head>
<body>
<div id="ddd">
<!--  <hr style="border:1px dashed #111111"/>-->
  <div style="text-align: center">

    <iframe src="https://view.officeapps.live.com/op/view.aspx?src={$ticket_info.ticket_path}" width="100%" height="600px"></iframe>
  </div>
  <input id="order_id" type="hidden" value="{$order_info.id}">
</div>
</body>
<div style="text-align: center;">
<!--  <input style="font-size: 20px;" type="button" onclick="aa()" value="打印"/>-->
</div>

</html>
